home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Utilities / vim-5.1 / doc / Makefile < prev    next >
Encoding:
Makefile  |  1998-01-18  |  3.0 KB  |  195 lines

  1. #
  2. # Makefile for the Vim documentation on Unix
  3. #
  4. # If you get "don't know how to make scratch", first run make in the source
  5. # directory.  Or remove the include below.
  6.  
  7. AWK = awk
  8.  
  9. # include the config.mk from the source directory.  It's only needed to set
  10. # AWK, used for "make html".  Comment this out if the include gives problems.
  11. include ../src/config.mk
  12.  
  13. DOCS = \
  14.     autocmd.txt \
  15.     change.txt \
  16.     cmdline.txt \
  17.     digraph.txt \
  18.     editing.txt \
  19.     eval.txt \
  20.     farsi.txt \
  21.     gui.txt \
  22.     gui_w32.txt \
  23.     gui_x11.txt \
  24.     help.txt \
  25.     howto.txt \
  26.     index.txt \
  27.     insert.txt \
  28.     intro.txt \
  29.     map.txt \
  30.     message.txt \
  31.     motion.txt \
  32.     options.txt \
  33.     os_amiga.txt \
  34.     os_archi.txt \
  35.     os_beos.txt \
  36.     os_dos.txt \
  37.     os_mac.txt \
  38.     os_mint.txt \
  39.     os_msdos.txt \
  40.     os_os2.txt \
  41.     os_unix.txt \
  42.     os_win32.txt \
  43.     pattern.txt \
  44.     if_perl.txt \
  45.     if_python.txt \
  46.     if_ole.txt \
  47.     quickfix.txt \
  48.     recover.txt \
  49.     repeat.txt \
  50.     rightleft.txt \
  51.     scroll.txt \
  52.     starting.txt \
  53.     syntax.txt \
  54.     tagsearch.txt \
  55.     term.txt \
  56.     tips.txt \
  57.     uganda.txt \
  58.     undo.txt \
  59.     various.txt \
  60.     version4.txt \
  61.     version5.txt \
  62.     vi_diff.txt \
  63.     visual.txt \
  64.     windows.txt
  65.  
  66. HTMLS = \
  67.     autocmd.html \
  68.     change.html \
  69.     cmdline.html \
  70.     digraph.html \
  71.     editing.html \
  72.     eval.html \
  73.     farsi.html \
  74.     gui.html \
  75.     gui_w32.html \
  76.     gui_x11.html \
  77.     help.html \
  78.     howto.html \
  79.     index.html \
  80.     insert.html \
  81.     intro.html \
  82.     map.html \
  83.     message.html \
  84.     motion.html \
  85.     options.html \
  86.     os_amiga.html \
  87.     os_archi.html \
  88.     os_beos.html \
  89.     os_dos.html \
  90.     os_mac.html \
  91.     os_mint.html \
  92.     os_msdos.html \
  93.     os_os2.html \
  94.     os_unix.html \
  95.     os_win32.html \
  96.     pattern.html \
  97.     if_perl.html \
  98.     if_python.html \
  99.     if_ole.html \
  100.     quickfix.html \
  101.     recover.html \
  102.     repeat.html \
  103.     rightleft.html \
  104.     scroll.html \
  105.     starting.html \
  106.     syntax.html \
  107.     tagsearch.html \
  108.     term.html \
  109.     tips.html \
  110.     uganda.html \
  111.     undo.html \
  112.     various.html \
  113.     version4.html \
  114.     version5.html \
  115.     vi_diff.html \
  116.     visual.html \
  117.     windows.html
  118.  
  119. .SUFFIXES:
  120. .SUFFIXES: .c .o .txt .html
  121.  
  122. all: tags vim.man xxd.man ctags.man
  123.  
  124. tags: doctags $(DOCS)
  125.     ./doctags $(DOCS) | sort >tags
  126.     uniq -d -2 tags
  127.  
  128. doctags: doctags.c
  129.     $(CC) doctags.c -o doctags
  130.  
  131. vim.man: vim.1
  132.     nroff -man vim.1 | sed -e s/.//g > vim.man
  133.  
  134. xxd.man: xxd.1
  135.     nroff -man xxd.1 | sed -e s/.//g > xxd.man
  136.  
  137. ctags.man: ctags.1
  138.     nroff -man ctags.1 | sed -e s/.//g > ctags.man
  139.  
  140. ctags.1: ../src/ctags/ctags.1
  141.     cp ../src/ctags/ctags.1 ctags.1
  142.  
  143. html: noerrors tags tags.ref $(HTMLS)
  144.     -more errors.log
  145.  
  146. noerrors:
  147.     -rm -f errors.log
  148.  
  149. .txt.html:
  150.     $(AWK) -f makehtml.awk $< >$@
  151.  
  152. tags.ref: tags
  153.     $(AWK) -f maketags.awk tags >tags.html
  154.  
  155. clean:
  156.     -rm doctags *.html tags.ref
  157.  
  158. # These files are in the extra archive, skip if not present
  159.  
  160. farsi.txt:
  161.     touch farsi.txt
  162.  
  163. gui_w32.txt:
  164.     touch gui_w32.txt
  165.  
  166. if_ole.txt:
  167.     touch if_ole.txt
  168.  
  169. os_amiga.txt:
  170.     touch os_amiga.txt
  171.  
  172. os_archi.txt:
  173.     touch os_archi.txt
  174.  
  175. os_beos.txt:
  176.     touch os_beos.txt
  177.  
  178. os_dos.txt:
  179.     touch os_dos.txt
  180.  
  181. os_mac.txt:
  182.     touch os_mac.txt
  183.  
  184. os_mint.txt:
  185.     touch os_mint.txt
  186.  
  187. os_msdos.txt:
  188.     touch os_msdos.txt
  189.  
  190. os_os2.txt:
  191.     touch os_os2.txt
  192.  
  193. os_win32.txt:
  194.     touch os_win32.txt
  195.